<?
include_once "gblinclude.lib";
include_once "pub/commwidget.lib";

$layoutFactory = new CLayoutFactory();

$header = $layoutFactory->getHeader("", "", "");
$tail = $layoutFactory->getTail();

$content = CreateContent();
$leftBar = GetLeftbarLastestNew();
$body = $layoutFactory->getBody($content, $leftBar);
$script = CreateJs();

echo $header.$script.$body.$tail;


function CreateContent()
{
	global $gblUserID;
	
	$bodyContent .= '
			<table width="100%" border="0" style="">
				<tr>
					<td align="left" style="padding-left:0px">
						<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="738" height="500">
							<param name="movie" value="flash/game.swf?user_id='.$gblUserID.'&refesh='.time().'">
							<param name="quality" value="high">
							<embed src="flash/game.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="738" height="500"></embed>
						</object> 
					</td>
				</tr>
			</table>
		';
		
	return $bodyContent;
}

function CreateJs()
{
	$js = '
		<script>
		
		</script>';
	return $js;
}
?>
